
<?php


require 'database.php'; 

$query = "SELECT Id, methode FROM verzendmethode";


$result = $mysqli->query($query) or die(mysqli_error($mysqli));

if ($result) {
  echo "<form method='post' action='toegevoegd_klant.php'>";  
  echo "<table cellspacing='0' cellpadding='15'>
  		
  		<th width='100%'>Bezorgmethodes selecteren:</th>
  		
		";
	
	
  while ($row = $result->fetch_object()) {
	
		$Id = $row->Id;
		$methode = $row->methode;

	echo "<tr>
			
			<td>$methode</td>
			<td><input type='checkbox' name='checkbox[]' id='checkbox[]'  value=$Id />
		 </tr>"; 
	
    }
	echo "</table><p><input id='kies' type='submit' class='button' name='kies' value='Kies'/></p></form>";
}

?>
